package com.duk.main;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Window;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.widget.TextView;

import com.rss_reader.data.News;

public class ShowHtml extends Activity {
	private News news;
	WebView webView;
	static final String mimeType = "text/html";
	static final String encoding = "utf-8";
	public void onCreate(Bundle icicle) {
		super.onCreate(icicle);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.showhtml);
		
		String CopyrightUrl = null;
		
		Intent startingIntent = getIntent();

		if (startingIntent != null) {
			Bundle bundle = startingIntent
					.getBundleExtra("android.intent.extra.rssItem");
											
				CopyrightUrl = bundle.getString("CopyrightUrl");
			
		} 
		
		webView = (WebView) findViewById(R.id.webView);
		WebSettings localWebSettings = webView.getSettings();
		  localWebSettings.setCacheMode(1);
	      localWebSettings.setJavaScriptEnabled(true);
	      localWebSettings.setBuiltInZoomControls(true);
	      localWebSettings.setSupportZoom(true);
	      localWebSettings.setDefaultTextEncodingName("UTF-8");
	      webView.loadUrl(CopyrightUrl);
	     // webView.setVisibility(0);
	
	}
	 
}
